package cn.tedu.charging.order.dao.repository;

import cn.tedu.charging.order.pojo.po.ChargingProcessPO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ChargingProcessRepository extends ElasticsearchRepository<ChargingProcessPO,Long> {
    //观察继承的接口在的位置，springframework
    //ElasticsearchRepository又继承了PagingAndSortingRepository<T, ID>分页和存储
    //PagingAndSortingRepository<T, ID>又继承了CrudRepository<T, ID>，里面实现CRUD方法
    //<T, ID>的T是实际数据类型，这儿用ChargingProcessPO，ID是这个数据类型的id？这儿用ChargingProcessPO的ID类型为Long
    //比mybatis-plus还方便，mybatis-plus还是在mapper层继承的basicMapper
    //同样类似于mybatis，需要给ChargingProcessPO
}
